package com.ruoyi.common.core.domain.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 基础人员对象 person
 * 
 * @author ess
 * @date 2021-10-14
 */
public class Person extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 人员id  */
    private String personId;

    /** 人员姓名 */
    @Excel(name = "人员姓名")
    private String personName;

    /** 姓名全拼 */
    private String nameAp;

    /** 身份证号 */
    private String idNum;

    /** 生日 */
//    @Excel(name = "生日")
    private String birNum;

    /** 头像路径 */
    private String avatar;

    /** 性别 1男 2女 */
//    @Excel(name = "性别")
    private Long sex;

    /** 状态 1有效 0停用 */
    @Excel(name = "状态 0有效 1停用")
    private Long state;

    /** 全省统一人员ID */
    private String provincialUserId;

    /** 个人证书Id */
    private String certId;

    /** 人员编号 */
    @Excel(name = "人员编号")
    private String empNum;

    /** 登录账号，姓名 */
    @Excel(name = "登录账号")
    private String loginAccount;

    /** 登录密码 */
    private String loginPsw;

    /** 密码最后更新时间 */
    private Date pwdUpdateDate;

    /** 备注 */
    @Excel(name = "备注")
    private String pData;

    public void setPersonId(String personId) 
    {
        this.personId = personId;
    }

    public String getPersonId() 
    {
        return personId;
    }
    public void setPersonName(String personName) 
    {
        this.personName = personName;
    }

    public String getPersonName() 
    {
        return personName;
    }
    public void setNameAp(String nameAp) 
    {
        this.nameAp = nameAp;
    }

    public String getNameAp() 
    {
        return nameAp;
    }
    public void setIdNum(String idNum) 
    {
        this.idNum = idNum;
    }

    public String getIdNum() 
    {
        return idNum;
    }
    public void setBirNum(String birNum) 
    {
        this.birNum = birNum;
    }

    public String getBirNum() 
    {
        return birNum;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setProvincialUserId(String provincialUserId) 
    {
        this.provincialUserId = provincialUserId;
    }

    public String getProvincialUserId() 
    {
        return provincialUserId;
    }
    public void setCertId(String certId) 
    {
        this.certId = certId;
    }

    public String getCertId() 
    {
        return certId;
    }
    public void setEmpNum(String empNum) 
    {
        this.empNum = empNum;
    }

    public String getEmpNum() 
    {
        return empNum;
    }
    public void setLoginAccount(String loginAccount) 
    {
        this.loginAccount = loginAccount;
    }

    public String getLoginAccount() 
    {
        return loginAccount;
    }
    public void setLoginPsw(String loginPsw) 
    {
        this.loginPsw = loginPsw;
    }
    @JsonIgnore
    @JsonProperty
    public String getLoginPsw() 
    {
        return loginPsw;
    }

    public void setPwdUpdateDate(Date pwdUpdateDate) 
    {
        this.pwdUpdateDate = pwdUpdateDate;
    }

    public Date getPwdUpdateDate() 
    {
        return pwdUpdateDate;
    }
    public void setpData(String pData) 
    {
        this.pData = pData;
    }

    public String getpData() 
    {
        return pData;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("personId", getPersonId())
            .append("personName", getPersonName())
            .append("nameAp", getNameAp())
            .append("idNum", getIdNum())
            .append("birNum", getBirNum())
            .append("avatar", getAvatar())
            .append("sex", getSex())
            .append("state", getState())
            .append("provincialUserId", getProvincialUserId())
            .append("certId", getCertId())
            .append("empNum", getEmpNum())
            .append("loginAccount", getLoginAccount())
            .append("loginPsw", getLoginPsw())
            .append("pwdUpdateDate", getPwdUpdateDate())
            .append("pData", getpData())
            .toString();
    }
}
